import request from '@/utils/request'
import thesaurus from "../../views/thesaurus/index.vue";

// 查询词库列表
export function listCatalogue(query) {
  return request({
    url: '/basics/thesaurus/catalogue/list',
    method: 'get',
    params: query
  })
}

// 查询字典类型详细
export function getCatalogue(thesaurusId) {
  return request({
    url: '/basics/thesaurus/catalogue/' + thesaurusId,
    method: 'get'
  })
}

// 新增字典类型
export function addCatalogue(data) {
  return request({
    url: '/basics/thesaurus/catalogue',
    method: 'post',
    data: data
  })
}

// 修改字典类型
export function updateCatalogue(data) {
  return request({
    url: '/basics/thesaurus/catalogue',
    method: 'put',
    data: data
  })
}

// 删除字典类型
export function delCatalogue(thesaurusId) {
  return request({
    url: '/basics/thesaurus/catalogue/' + thesaurusId,
    method: 'delete'
  })
}

